using System;
namespace FuzzyTaskList
{
    public class DataProviderFactory<T> where T : new()
    {
        
        public static TaskDataProviderBase<T> GetDataProvider(string dataProvider)
        {
            switch (dataProvider)
            {
                case "FileSystem":
                    return new FileSystemDataProvider<T>(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments));
                default:
                    throw new ArgumentException(String.Format("dataProvider {0} does not exist", dataProvider));
            }
        }
    }
}
